package com.szt.sy.service.blog.notice;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.szt.sy.entity.blog.Notice;
import com.szt.sy.mapper.blog.NoticeMapper;

/***
 * 公告服务
 * 
 * @author wwy
 *
 */
@Service
@Transactional(rollbackFor = RuntimeException.class)
public class NoticeService extends ServiceImpl<NoticeMapper, Notice> {
	
	/**
	 * 列表
	 *
	 * @param page
	 * @
	 */
	public Page<Notice> list(Page<Notice> page, Map<String, Object> map) {
		page.setRecords(baseMapper.datalistPage(page, map));
		return page;
	}
	
	/**
	 * 列表(全部)
	 *
	 * @param pd
	 * @
	 */
	public List<Notice> listAll(Map<String, Object> map) {
		return baseMapper.listAll(map);
	}
	
}
